public class test {
    public static void main1(String[] args) {
        for (int i=1;i<=9;i++)
        {
            int j=1;
            for (j=1;j<=i;j++)
            {
                System.out.print(i+"*"+j+"="+i*j+"   ");
            }
            System.out.println();
        }
    }

    public static void main2(String[] args) {
        System.out.println(Math.sqrt(4));
        for (int i=2;i<=100;i++)
        {
            int n=0;
            int j=2;
            for(j=2;j<Math.sqrt(i);j++)
            {

                if(i%j==0)
                {
                    n=1;
                    break;
                }

            }
            if(n==0) {
                System.out.println(i);
            }
        }
    }

    public static void main(String[] args) {
        System.out.println("   *");//3
        System.out.println("  ***");//2
        System.out.println(" *****");//1
        System.out.println("*******");
        System.out.println(" *****");
        System.out.println("  ***");
        System.out.println("   *");
        System.out.println("\n");
        System.out.println(1);
        int n=7;
        for (int i=0;i<n/2;i++) {
            for(int j=0;j<n/2-i;j++) {
                System.out.print(" ");
            }
            for (int j=0;j<2*i+1;j++) {
                System.out.print("*");
            }
            System.out.println();
        }
        /*for(int i=n/2;i>0;i--) {
            for(int j=0;j<n/2-i+1;j++) {
                System.out.print(" ");
            }
            for (int j=0;j<2*i-1;j++) {
                System.out.print("*");
            }
            System.out.println();
            }*/
        for(int i=0;i<=n/2;i++) {
            for(int j=0;j<i+1;j++) {
                System.out.print(" ");
            }
            for(int j=0;j<2*(n/2-i)-1;j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}


